import request from '@/utils/request'
export class nodeManagementApi{

   // 节点分页查询
   static getNodePageList(data: any){
    return request.post('/node/pageList',data)
   }

   // 获取已部署节点
   static postDeployedNodeList(data: any){
    return request.post('/node/getDeployedNodes',data)
   }

   // 获取未部署节点
   static postUndeployedNodeList(data: any){
    return request.post('/node/getUndeployedNodes',data)
   }


   // 节点条件查询
   static postNodeConditionQuery(data: any){
    return request.post('/node/queryList',data)
   }


   // 根据节点id获取部署文件信息
   static postNodeDeployFileQuery(data: any){
    return request.post('/node/getNodeDepFile',data)
   }

   //批量删除节点
   static postBatchDeleteNode(data: any){
    return request.post('/node/deleteList',data)
   }


   // 获取真实节点和宿主机节点的cpu和内存占用
   static getNodeCpuAndMem(data: any){
    return request.post('/node/getNodeCpuAndMem',data)
   }


   // 下发故障注入指令
   static postInjectFault(data: any){
    return request.post('/node/faultInjection',data)
   }

   // 下发停止故障注入指令
   static postStopInjectFault(data: any){
    return request.post('/node/stopFaultInjection',data)
   }


   //节点管理查询所有节点,排除宿主机
   static getNodeListExcludeHost(data: any){
    return request.post('/node/queryAll',data)
   }



   // 查询在线节点,按部署物数量从大到小排序
   static getOnlineNodeList(data: any){
    return request.post('/node/queryOnline',data)
   }

  
}

